#define _CRT_SECURE_NO_WARNINGS  1

#include<stdio.h>


int my_strlen(char* p)
{
	int count = 0;
	while (*p != '\0')
	{
		p++;
		count++;
	}
	return count;
}

int main()
{
	char arr[] = "abcdef";
	printf("%d", my_strlen(arr));
	return 0;
}